package org.nox.helloseries.server.utils;

import java.util.concurrent.TimeUnit;

public final class ServerUtils
{

    private ServerUtils()
    {
        super();
    }

    public static String millisPrettyPrint( long millis )
    {
        long minutes = TimeUnit.MILLISECONDS.toMinutes( millis );
        long seconds = TimeUnit.MILLISECONDS.toSeconds( millis % 36000 );

        return String.format( "%02d minutes %02d secondes", minutes, seconds );
    }

}
